package com.exchange.a;

import android.view.animation.Interpolator;

public class c
  implements Interpolator
{
  private b.a a;

  public c(b.a parama)
  {
    this.a = parama;
  }

  private float a(float paramFloat)
  {
    float f2;
    if (paramFloat < 0.36363636363636365D)
      f2 = paramFloat * 7.5625F * paramFloat;
    while (true)
    {
      while (true)
      {
        while (true)
        {
          return f2;
          if (paramFloat >= 0.72727272727272729D)
            break;
          float f4 = (float)(paramFloat - 0.54545454545454541D);
          f2 = 0.75F + f4 * 7.5625F * f4;
        }
        if (paramFloat >= 0.90909090909090906D)
          break;
        float f3 = (float)(paramFloat - 0.81818181818181823D);
        f2 = 0.9375F + f3 * 7.5625F * f3;
      }
      float f1 = (float)(paramFloat - 0.95454545454545459D);
      f2 = 0.984375F + f1 * 7.5625F * f1;
    }
  }

  private float b(float paramFloat)
  {
    return (1F - a(1F - paramFloat));
  }

  private float c(float paramFloat)
  {
    float f;
    if (paramFloat < 0.5F)
      f = 0.5F * b(paramFloat * 2F);
    while (true)
    {
      return f;
      f = 0.5F + 0.5F * a(paramFloat * 2F - 1F);
    }
  }

  public float getInterpolation(float paramFloat)
  {
    float f;
    if (this.a == b.a.a)
      f = b(paramFloat);
    while (true)
    {
      while (true)
      {
        while (true)
        {
          return f;
          if (this.a != b.a.b)
            break;
          f = a(paramFloat);
        }
        if (this.a != b.a.c)
          break;
        f = c(paramFloat);
      }
      f = 0F;
    }
  }
}